<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">  
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link href="${ctx}/resources/semanticui/semantic.min.css" rel="stylesheet" type="text/css" />
    <link href="${ctx}/resources/apps.css" rel="stylesheet" type="text/css" />
    <title>候选人详细资料</title>  
</head>
<body>

<%-- <img class="ui image" src="${ctx}/resources/images/logo.jpg"> --%>
<img class="ui image" src="https://headoffer.com/medtalent_logo.jpg">
<div class="ui segments" id="pop-style">

<c:if test="${employee != null}">
        <input type="hidden" name="empId" id="empId" value="${employee.id}"/>
        <input type="hidden" name="domainId" id="domainId" value="${employee.domainId}"/>    
</c:if>
    <div class="ui center aligned segment" id="step1-title">
        <br>&nbsp;
        候选人详细资料信息
        <br>&nbsp;
    </div>

    <div class="ui horizontal divider sep">
    所在的行业
    </div>

    <div class="ui segment infos2">
<c:choose>
    <c:when test="${domainId == 1 }">
        医疗 
        <br />
    </c:when>    
    <c:otherwise>
        医药
        <br />
    </c:otherwise>
</c:choose>        
    </div>

    <div class="ui horizontal divider sep">
   目前的现状
    </div>

    <div class="ui segment infos">
        现任公司：
        ${employee.companyName}
        <br>
        现任职位：
${employee.roleName}
        <br>
        所在城市：${employee.cityName}
        <br>
        管理区域：&nbsp;${employee.bestdomain}
    </div>

    <div class="ui horizontal divider sep">
   所期望的
    </div>

    <div class="ui segment infos">
        期望加入公司：<br>
        &nbsp;&nbsp;&nbsp;&nbsp;${employee.expectCompanyName1}<br>
    &nbsp;&nbsp;&nbsp;&nbsp;${employee.expectCompanyName2}<br>
    &nbsp;&nbsp;&nbsp;&nbsp;${employee.expectCompanyName3}<br>


        期望担任职位：${employee.expectJobName}
        <br>
        特别备注：&nbsp;${employee.comment}<br>
        何时联系：
<c:choose>
    <c:when test="${employee.intentTime == '0' }">
        现在
    </c:when>  
    <c:when test="${employee.intentTime == '1' }">
        一月后
    </c:when>  
    <c:when test="${employee.intentTime == '6' }">
        半年后
    </c:when>   
    <c:otherwise>
        一年后
    </c:otherwise>
</c:choose> 
        <br>
        联系方式：&nbsp;${employee.phone}<br>
        &nbsp;<br>
    </div>

    &nbsp;<br>
    
</div>


<!--
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
-->
<script src="${ctx}/resources/jweixin-1.0.0.js"></script>

<script src="${ctx}/resources/semanticui/jquery-2.1.4.min.js"></script>
<script src="${ctx}/resources/semanticui/semantic.js" type="text/javascript"></script>
<script type="text/javascript">

wx.config({
    debug: false, 
    appId: "${config.appid}",  
    timestamp: ${config.currenttimestamp},  
    nonceStr: "${config.nonceStr}", 
    signature: "${config.signatureStr}", 
    jsApiList: ['checkJsApi',
        'onMenuShareTimeline',
        'onMenuShareAppMessage',
        'onMenuShareQQ',
        'onMenuShareWeibo',
        'showOptionMenu']  
});

    var handler = { 
        activate: function() { 
            $(this).addClass('active').siblings().removeClass('active'); 

            if($(this).attr('id') == 'next') {
                var empId     = $('#empId').val();
                var domainId  = $('#domainId').val();
                location.href = '${ctx}/wechat/candidate/toEdit.page?domainId='+domainId+'&empId='+empId;
            }
        } 
    };

    $(document).ready(function() { 
      $('.button').on('click', handler.activate);
        wx.ready(function() { 
            
            //alert("${ctx}/wechat/candidate/main.page");
            
            wx.onMenuShareAppMessage({
                title:'跳哪里|#'+"${employee.id}-${employee.name}"+'待您激活', 
                desc: '补充完善您的信息，数以千计的医疗行业职位等着你。推荐有奖，自荐有奖，奖、奖、奖。',  
                link: 'https://www.tiaonali.com/tnl-candidate/wechat/candidate/main.page',  
                imgUrl: 'https://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg',  
                type: 'link'
            });

            wx.onMenuShareTimeline({
            	title:'跳哪里|#'+"${employee.id}-${employee.name}"+'待您激活', 
                desc: '补充完善您的信息，数以千计的医疗行业职位等着你。推荐有奖，自荐有奖，奖、奖、奖。',  
                link: 'https://www.tiaonali.com/tnl-candidate/wechat/candidate/main.page',  
                imgUrl: 'https://www.tiaonali.com${ctx}/resources/images/sharelogo.jpg', 
            });

            wx.showOptionMenu();
            
        });
    });

</script>
</body>
</html>